<template>
  <div class="nearby__item" >
    <img class="nearby__item__img" :src="info.imgUrl" alt="" />
    <div :class="{'nearby__content': true, 'bottom-border': ishide}">
      <p class="nearby__content__title">
        {{ info.name }}
      </p>
      <div class="nearby__content__tags">
        <span class="nearby__content__tag">起送:{{ info.expressLimit }}</span>
        <span class="nearby__content__tag"
          >基础运费:{{ info.expressPrice }}</span
        >
        <span class="nearby__content__tag">月售:{{ info.sales }}</span>
      </div>
      <p class="nearby__content__aa">{{ info.slogan }}</p>
    </div>
  </div>
</template>

<script>
// import { toRef } from 'vue'
export default {
  name: 'ShopDetail',
  props: ['info', 'ishide'],
  setup (props) {
    console.log(props.ishide, typeof props.ishide)
  }
}
</script>

<style lang="scss" scoped>
@import "../style/mixins.scss";
@import "../style/viriales.scss";
.nearby__item {
  display: flex;
  padding: 0.12rem;
  &__img {
    margin: 0.3rem 0.16rem 0 0;
    width: 0.56rem;
    height: 0.56rem;
  }
}
.bottom-border {
  border-bottom: 0.01rem solid #908e8e;
}
.nearby__content {
  flex: 1;
  padding-bottom: 0.12rem;
  &__title {
    line-height: 0.22rem;
    font-size: 0.16rem;
    color: #333;
  }
  &__tags {
    line-height: 0.18rem;
    font-size: 0.13rem;
    margin-top: 0.08rem;
    color: #333;
  }
  &__tag {
    margin-right: 0.16rem;
  }
  &__aa {
    color: red;
    margin: 0.08rem 0 0 0;
    font-size: 0.13rem;
    line-height: 0.18rem;
  }
}
</style>
